package com.gali.lovefinder.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gali.lovefinder.model.entity.Post;
import com.gali.lovefinder.service.PostService;
import com.gali.lovefinder.mapper.PostMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author gali
* @description 针对表【post(帖子)】的数据库操作Service实现
* @createDate 2023-07-03 23:03:11
*/
@Service
public class PostServiceImpl extends ServiceImpl<PostMapper, Post>
    implements PostService{
@Resource
private PostMapper postMapper;
    @Override
    public List<Post> getPostList() {

        return postMapper.selectList(null);
    }
}




